<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <title>商品大类显示</title>
    <link rel="stylesheet" type="text/css" href="../css/bootstrap.min.css">
    <link rel="StyleSheet" href="../css/jpetstore.css" type="text/css" media="screen" />

</head>
<body >
<!-- 顶栏 -->
<div th:replace="seller/topp"></div>
<!-- 中间主体 -->
<div class="container" id="content">
    <div class="row">
        <div th:replace="seller/menu::menu"></div>
        <div class="col-md-10">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <div class="row">

                            <h4><a href="/seller/viewShowCategory" >商品大类</a>
                            <a href="/seller/viewShowProduct" >商品小类</a></h4>

<!--                        <form class="bs-example bs-example-form col-md-5" role="form" style="margin: 20px 0 10px 0;" action="#" id="form1" method="post">-->
<!--                            <div class="input-group">-->
<!--&lt;!&ndash;                                <input type="text" class="form-control" placeholder="请输入名称" name="findByName">&ndash;&gt;-->
<!--&lt;!&ndash;                                <span class="input-group-addon btn" onclick="document.getElementById('form1').submit" id="sub">搜索</span>&ndash;&gt;-->
<!--                                <input type="text" id="keyword" name="keyword" size="14" placeholder="请输入商品名" />-->
<!--                                <input type="submit" name="searchProducts" value="搜索" />-->
<!--                            </div>-->
<!--                        </form>-->
<!--                        <button class="btn btn-default col-md-2" style="margin-top: 20px" onClick="location.href=‘#’">-->
<!--                            添加商品大类-->
<!--                            <sapn class="glyphicon glyphicon-plus"/>-->
<!--                        </button>-->

                    </div>
                </div>
                <table class="table table-bordered">
                    <thead>
                    <tr>
                        <th>catId</th>
                        <th>name</th>
                        <th>description</th>
<!--                        <th>操作</th>-->
                    </tr>
                    </thead>
                    <tbody>
                        <tr th:each="c:${categoryList}">
                            <td th:text="${c.categoryId}">catId</td>
                            <td th:text="${c.name}">name</td>
                            <td th:utext="${c.description}">descn</td>
<!--                            <td>-->
<!--                                <button class="btn btn-default btn-xs btn-info" onClick="location.href='#'">修改</button>-->
<!--                                <button class="btn btn-default btn-xs btn-danger btn-primary" onClick="location.href='#'">删除</button>-->
                                <!--弹出框-->
<!--                            </td>-->
                        </tr>
                    </tbody>
                </table>
    </div>
</div>
    </div>
</div>
</body>
</html>